<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/jquery.min.js"></script>
	</head>
	
	<body>
		<div>价格：<span id="itemprice"></span></div>
		<div>编号：<span id="itemID"></span></div>
	</body>
	<script>
		var jsonstr = '[{"p":"2499.00","op":"2499.00","cbf":"0","id":"J_100003717483","m":"10000.00"}]';
		console.log(jsonstr);
		
		var items = JSON.parse(jsonstr);
		console.log(items[0]);
		console.log(items[0].p);
		console.log(items[0].id);
		
		$("#itemID").text(items[0].id);
		$("#itemID").css("color","blue");
		
		$("#itemprice").text(items[0].p);
		$("#itemprice").css("color","red");
	</script>
</html>
